package educrypt.gui.components;

import java.awt.EventQueue;

import educrypt.gui.ctr.EduCryptCtr;
import educrypt.gui.util.GuiUtil;

public class EduCryptGui {
	public static MainWindow window;

	public static void initialize() {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GuiUtil.setDefaultFont();
					window = new MainWindow();
					new EduCryptCtr(window);

				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	public static void toFront() {
		window.toFront();
	}

}
